@layout("/common/_container.html"){
<style>
	.input-group{
		/*width:45%;*/
	}
	.row input[type=text],.form-control, .single-line{
	    width:35%;
        float:left;
    }
    .error{
        color:red;
        float:left;
        padding-top: 7px;
        padding-left: 10px;
    }
    .isShow label{
        padding-right:10px;
        padding-top:3px;
    }
	.input-group{
		width:60%;
		margin:0 auto;
	}
	.row input[type=text]{
	width:45%; 
    }
    .error{
        color:red;
    }
</style>
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal">

            <input type="hidden" id="id" value="${item.userId}">

            <div class="row">
                <div class="col-sm-6 b-r" style="width: 100%">
                     <#input id="userId" name="" value="${item.userId}" type="hidden" />
                     <#input id="loginName" name="账户/昵称" value="${item.loginName}" underline="true"/>
                     <!-- <#avatar id="userPhoto" name="上传头像" underline="true" avatarImg="${item.userPhoto}"/> -->
                     <#avatar id="userPhoto" name="上传头像" underline="true" avatarImg="${item.userPhoto}"/>
                     <!-- <#input id="userPhoto" name="上传头像" value="${item.userPhoto}" underline="true"/> -->
                     <#input id="userPhone" name="手机号码" value="${item.userPhone}" underline="true"/>
                     <#input id="trueName" name="真实姓名" value="${item.trueName}" underline="true" disabled="disabled" />
                    <!-- <input type="hidden" id="loginOld" value="${item.loginPwd}"/>-->
                     <#input id="loginPwd" name="重置密码" value="" underline="true" placeholder="不填写值不会修改密码"/>
                     <#input id="userType2" name="用户角色" value="${item.userType}" underline="true"/>
                         <input id="userType" type="hidden" value="${item.userType}" />
                     <!--<#input id="isStore" name="是否线下商家" value="${item.isStore}" underline="true"/>-->
                    <div class="form-group">
                    <div style="displa:flex;width:750px;height:50px;line-height:30px;margin:0 auto;">
                            <span>是否线下商家</span>
                            <input type="radio" id="isStore" name="isStore" value='1'/>是
                            <input type="radio" id="isNotStore" name="isStore" value='0'/>不是
                            <script>
                                var isStore = ${item.isStore} == '1';
                                $('#isStore').attr('checked', isStore);
                                $('#isNotStore').attr('checked', !isStore);
                            </script>
                        </div>
                    </div>

                    <!-- <#input id="isShop" name="是否线上商家" value="${item.isShop}" />-->
                    <div class="form-group">
                    <div style="displa:flex;width:750px;height:50px;line-height:30px;margin:0 auto;">
                            <span>是否线上商家</span>
                            <input type="radio" id="isShop" name="isShop" value='1'/>是
                            <input type="radio" id="isNotShop" name="isShop" value='0'/>不是
                            <script>
                                let isShop = ${item.isShop} == '1';
                                $('#isShop').attr('checked', isShop);
                                $('#isNotShop').attr('checked', !isShop);
                            </script>
                        </div>
                    </div>

                     <#input id="isAgent2" name="是否代理股东" value="${item.isAgent}" underline="true"/>
                     <input id="isAgent" type="hidden" value="${item.isAgent}" />
                     <#input id="tuiPhone" name="推荐人手机号" value="${item.tuiPhone}" underline="true"/>
                     <#input id="tuiName" name="推荐人姓名" value="${item.tuiName}" underline="true" />
                     <input id="inviteId" value="${item.inviteId}" type="hidden"/>
                    <!-- <#input id="inviteId" name="推荐人Id" value="${item.inviteId}" type="hidden" underline="true"/> -->
                     <!--<#input id="userStatus" name="用户状态" value="${item.userStatus}" underline="true"/>-->
                    <div class="form-group">
                    <div style="displa:flex;width:750px;height:50px;line-height:30px;margin:0 auto;">
                            <span>用户状态</span>
                            <input type="radio" id="userStatus" name="userStatus" value='1'/>启用
                            <input type="radio" id="userNotStatus" name="userStatus" value='0'/>停用
                            <script>
                                var userStatus = ${item.userStatus} == '1';
                                $('#userStatus').attr('checked', userStatus);
                                $('#userNotStatus').attr('checked', !userStatus);
                            </script>
                        </div>
                    </div>
                     <!--<#input id="isPrivilege" name="是否特权账号" value="${item.isPrivilege}" underline="true"/>-->
                    <div class="form-group">
                    <div style="displa:flex;width:750px;height:50px;line-height:30px;margin:0 auto;">
                            <span>是否特权账号</span>
                            <input type="radio" id="isPrivilege" name="isPrivilege" value='1'/>是
                            <input type="radio" id="isNotPrivilege" name="isPrivilege" value='0' checked="checked"/>不是
                            <script>
                                var isPrivilege = ${item.isPrivilege} == '1';
                                $('#isPrivilege').attr('checked', isPrivilege);
                                $('#isNotPrivilege').attr('checked', !isPrivilege);
                            </script>
                        </div>
                    </div>
                    <div class="form-group">
                        <div style="displa:flex;width:750px;height:50px;line-height:30px;margin:0 auto;">
                            <span>是否允许提现</span>
                            <input type="radio" id="isWithdrawCash" name="isWithdrawCash" value='1'/>是
                            <input type="radio" id="isNotWithdrawCash" name="isWithdrawCash" value='2'/>不是
                            <script>
                                var isWithdrawCash = ${item.isWithdrawCash} == '1';
                                $('#isWithdrawCash').attr('checked', isWithdrawCash);
                                $('#isNotWithdrawCash').attr('checked', !isWithdrawCash);
                            </script>
                        </div>
                    </div>
                    <div class="form-group">
                        <div style="displa:flex;width:750px;height:50px;line-height:30px;margin:0 auto;">
                            <span>是否允许转化积分</span>
                            <input type="radio" id="isOperation" name="isOperation" value='1'/>是
                            <input type="radio" id="isNotOperation" name="isOperation" value='0' />不是
                            <script>
                                var isOperation = ${item.isOperation} == '1';
                                $('#isOperation').attr('checked', isOperation);
                                $('#isNotOperation').attr('checked', !isOperation);
                            </script>
                        </div>
                    </div>
                    <#input id="createTime" name="注册时间" value="${item.createTime}" underline="true" disabled ="true"/>

            </div>

            <div class="row btn-group-m-t">
                <div class="col-sm-12 text-center">
                    <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="UsersInfoDlg.editSubmit()"/>
                    <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="UsersInfoDlg.close()"/>
                </div>
            </div>
        </div>

    </div>
</div>
<script src="${ctxPath}/static/modular/huamao/users/users_info.js"></script>
<script type="text/javascript">
	
	$(function(){
	    var imgPhoto  = "${item.userPhoto}"
	    if(imgPhoto.indexOf("http")== -1){
	    	$('#ysj_img').attr("src","http://zzhtwl.oss-cn-qingdao.aliyuncs.com/"+"${item.userPhoto}");
	    }
	});
</script>
@}